<template>
  <div>
    <div>
       <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="deviceNum"
        label="巡检设备数量"
        width="180">
      </el-table-column>
      <el-table-column
        prop="exceptionInfo"
        label="异常设备信息"
        width="180">
      </el-table-column>
      <el-table-column
        prop="exceptionNum"
        label="	异常设备数量">
      </el-table-column>
      <el-table-column
        prop="inspectionResult"
        label="巡检结果">
      </el-table-column>
    </el-table>
    </div>
  </div>
</template>
<script>
import { getInspection } from '@/api/Inspection'
export default{
  data() {
    return {
      tableData: []
    }
  },
  mounted(){
    this.getInspection()
  },
methods:{
  async getInspection(){

      const res = await getInspection()
      console.log(res);
      if(res.status === 200){
        this.tableData = res.data.data.robotInspectionList
      }else{
        // 显示失败原因
        this.$message.error(res.data.message || '获取列表失败')
      }
     }
    
  }
}


</script>